package com.qf.model;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Order {

    private Integer id;
    private String onum;//订单编号
    private BigDecimal omoney;//订单的总价格
    /**
     * 订单的状态
     * 0未支付、1支付失败、2支付成功、3发货、4到货、5评价
     */
    private Integer ostatus;
    private Date otime;//订单的生成时间
    private Integer uid;//用户id
    //private List<Goods> list;
    private Integer aid;//地址id
    private Address address;
    private List<OrderItem> list;

    public List<OrderItem> getList() {
        return list;
    }

    public void setList(List<OrderItem> list) {
        this.list = list;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }


    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", onum='" + onum + '\'' +
                ", omoney=" + omoney +
                ", ostatus=" + ostatus +
                ", otime=" + otime +
                ", uid=" + uid +
                ", aid=" + aid +
                ", address=" + address +
                ", list=" + list +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOnum() {
        return onum;
    }

    public void setOnum(String onum) {
        this.onum = onum;
    }

    public BigDecimal getOmoney() {
        return omoney;
    }

    public void setOmoney(BigDecimal omoney) {
        this.omoney = omoney;
    }

    public Integer getOstatus() {
        return ostatus;
    }

    public void setOstatus(Integer ostatus) {
        this.ostatus = ostatus;
    }

    public Date getOtime() {
        return otime;
    }

    public void setOtime(Date otime) {
        this.otime = otime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Order() {
    }

    public Order(String onum, BigDecimal omoney, Integer ostatus, Date otime, Integer uid, Integer aid) {
        this.onum = onum;
        this.omoney = omoney;
        this.ostatus = ostatus;
        this.otime = otime;
        this.uid = uid;
        this.aid = aid;
    }
}
